package com.zucc.service.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-11-29 4:44 下午
 */
@Data
@ApiModel("分页")
public class PageNum {

    /**
     * 页码，从1开始
     */
    @ApiModelProperty("当前页码，从1开始")
    private int pageNum = 1;

    /**
     * 页面大小
     */
    @ApiModelProperty("每页的数字大小，默认20")
    private int pageSize = 20;

    @ApiModelProperty(hidden = true)
    private boolean onlyCount = false;

    public PageNum(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public PageNum() {
    }
}
